trunks: Add ptr() method to ScopedKeyHandle This method allows us to directly access the handle in the ScopedKeyHandle object, so that we can use it in methods like LoadKey Sample code looks like this: ScopedKeyHandle key(factory); LoadKey(key_blob, key.ptr(), ...); Encrypt(key.value()); This makes code for trunks clients a little simpler, since the ScopedKeyHandle can be declared before the Load operation as opposed the old operation which declared a TPM_HANDLE* and then wrapped it in a ScopedKeyHandle. BUG=None TEST=features=TEST emerge-rambi trunks Change-Id: I0849852aa26cea08ead1e1d7ab4dc6d500c8ccba 
2 files changed
tree: a650d7db4876aad34bcb59a9c32f5bd3dba64f67
  1. ftdi/
  2. generator/
  3. authorization_delegate.h
  4. background_command_transceiver.cc
  5. background_command_transceiver.h
  6. background_command_transceiver_test.cc
  7. blob_parser.cc
  8. blob_parser.h
  9. command_transceiver.h
  10. CPPLINT.cfg
  11. dbus_interface.h
  12. dbus_interface.proto
  13. error_codes.cc
  14. error_codes.h
  15. hmac_authorization_delegate.cc
  16. hmac_authorization_delegate.h
  17. hmac_authorization_delegate_test.cc
  18. hmac_session.h
  19. hmac_session_impl.cc
  20. hmac_session_impl.h
  21. hmac_session_test.cc
  22. Makefile
  23. mock_authorization_delegate.cc
  24. mock_authorization_delegate.h
  25. mock_blob_parser.cc
  26. mock_blob_parser.h
  27. mock_command_transceiver.cc
  28. mock_command_transceiver.h
  29. mock_hmac_session.cc
  30. mock_hmac_session.h
  31. mock_policy_session.cc
  32. mock_policy_session.h
  33. mock_session_manager.cc
  34. mock_session_manager.h
  35. mock_tpm.cc
  36. mock_tpm.h
  37. mock_tpm_state.cc
  38. mock_tpm_state.h
  39. mock_tpm_utility.cc
  40. mock_tpm_utility.h
  41. MODULE_LICENSE_APACHE2
  42. NOTICE
  43. org.chromium.Trunks.conf
  44. OWNERS
  45. password_authorization_delegate.cc
  46. password_authorization_delegate.h
  47. password_authorization_delegate_test.cc
  48. policy_session.h
  49. policy_session_impl.cc
  50. policy_session_impl.h
  51. policy_session_test.cc
  52. PRESUBMIT.cfg
  53. README
  54. resource_manager.cc
  55. resource_manager.h
  56. resource_manager_test.cc
  57. scoped_key_handle.cc
  58. scoped_key_handle.h
  59. scoped_key_handle_test.cc
  60. session_manager.h
  61. session_manager_impl.cc
  62. session_manager_impl.h
  63. session_manager_test.cc
  64. tpm_constants.h
  65. tpm_generated.cc
  66. tpm_generated.h
  67. tpm_generated_test.cc
  68. tpm_handle.cc
  69. tpm_handle.h
  70. tpm_simulator_handle.cc
  71. tpm_simulator_handle.h
  72. tpm_state.h
  73. tpm_state_impl.cc
  74. tpm_state_impl.h
  75. tpm_state_test.cc
  76. tpm_utility.h
  77. tpm_utility_impl.cc
  78. tpm_utility_impl.h
  79. tpm_utility_test.cc
  80. trunks.gyp
  81. trunks_client.cc
  82. trunks_client_test.cc
  83. trunks_client_test.h
  84. trunks_export.h
  85. trunks_factory.h
  86. trunks_factory_for_test.cc
  87. trunks_factory_for_test.h
  88. trunks_factory_impl.cc
  89. trunks_factory_impl.h
  90. trunks_ftdi_spi.cc
  91. trunks_ftdi_spi.h
  92. trunks_proxy.cc
  93. trunks_proxy.h
  94. trunks_service.cc
  95. trunks_service.h
  96. trunks_testrunner.cc
  97. trunksd-seccomp-amd64.policy
  98. trunksd-seccomp-arm.policy
  99. trunksd-seccomp-x86.policy
  100. trunksd.cc
  101. trunksd.conf